#include "ventanaseleccion.h"

VentanaSeleccion :: VentanaSeleccion(){
	
}

int VentanaSeleccion :: ejecutar(){
	
	this->bConectarse = this->add_button("Conectarse a partida", CONECTARSE);
	this->bSalir = this->add_button("Salir", SALIR);
	
	Glib::RefPtr<Gdk::Pixbuf> pixbuf = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/riskclient/images/risk");
	
	if(pixbuf){
		imagen.set(pixbuf);
	}
	
	this->get_vbox()->pack_start(imagen);
	this->get_vbox()->pack_start(hs);
		
	this->set_resizable(false);
	this->show_all();
	return this->run();
}

VentanaSeleccion :: ~VentanaSeleccion(){
	
	if(bConectarse != NULL){
		delete bConectarse;
	}
	if(bSalir != NULL){
		delete bSalir;
	}
}
